// eslint-disable-next-line no-unused-vars
import service from '@/utils/request'

const BASE_URL = 'api-course'

// 查找当前登录教师的需要上课的课程列表
export function signClassCourse() {
  return service({
    url: `${BASE_URL}/sign-in/class-course`,
    method: 'get'
  })
}

// 查找课程学生列表
export function signCourseStudent(classId, data) {
  return service({
    url: `${BASE_URL}/sign-in/class-course-student/${classId}`,
    method: 'get',
    params: data
  })
}

// 查询实到人数
export function signInCourseStudentCount(classId) {
  return service({
    url: `${BASE_URL}/sign-in/class-course-student-count/${classId}`,
    method: 'get'
  })
}

// 修改签到状态
export function changeSignInStatus(courseScheduleId, signInStatus) {
  return service({
    url: `${BASE_URL}/sign-in/class-course-student/status/${courseScheduleId}/${signInStatus}`,
    method: 'put'
  })
}

